import 'package:flutter/material.dart';
import 'package:xiongan_app_yy/entrys/rp/inv_list_details_entity.dart';
import 'package:xiongan_app_yy/widgets/comm/left_icon_widget.dart';
import 'package:xiongan_app_yy/widgets/in_task_mterial_list_widget.dart';

//信息-入库任务-详细-物资明细
class InTaskMterialDetails extends StatefulWidget {
   final List<InvListDetailsDatasTaskdetaillist> args;
  @override
  State<StatefulWidget> createState() {
    return InTaskMterialDetailsState();
  }

  InTaskMterialDetails(this.args);


}

class InTaskMterialDetailsState extends State<InTaskMterialDetails> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: new AppBar(
        leading: LeftIconWidget(icon: Icons.chevron_left, isize: 36),
        backgroundColor: Color(0XFF00A5F1),
        title: Text(
          "物资明细",
          style: TextStyle(fontSize: 18),
        ),
        elevation: 0,
        centerTitle: true,
      ),
      body: ListView.separated(
          itemBuilder: (BuildContext context, int index) {

            return InTaskMterialListWidget(data: widget.args.elementAt(index));
          },
          separatorBuilder: (BuildContext context, int index) =>
              Divider(height: 1, color: Color(0xffdddddd)),
          itemCount: widget.args.length),
    );
  }
}
